#include "GenDTMOperator.h"
#include "DlgGenDTM.h"

CGenDTMOperator::CGenDTMOperator(HDiMineView* view,IDMAddIn* addin)
:CAddInBaseOperator(view,addin)
{
}

CGenDTMOperator::~CGenDTMOperator(void)
{
}
int CGenDTMOperator::Init()
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	if(!CAddInBaseOperator::Init()) return 0;
	CGenDTMDialog* genDTM=new CGenDTMDialog;

	BEGIN_VALIDATE
	VALIDATE(genDTM->DoModal()==1)

	EXIT_VALIDATE
	if(genDTM) delete genDTM;
	RETURN_VALIDATE_RESULT
}